package com.edt.ichannel.api.service.impl;

import com.edt.ichannel.api.dao.FirstmoneyLogDao;
import com.edt.ichannel.api.entiy.local.FirstmoneyLog;
import com.edt.ichannel.api.service.FirstmoneyLogService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;


/**
 * FirstmoneyLog服务接口实现类
 * @author 李爽
 * @date 2018-08-21
 */
@Service
public class FirstmoneyLogServiceImpl implements FirstmoneyLogService {

    @Resource
    private FirstmoneyLogDao firstmoneylogDao;



    @Override
    public void saveOrUpdateFirstmoneyLog(FirstmoneyLog firstmoneyLog) {
        firstmoneylogDao.saveOrUpdateFirstmoneyLog(firstmoneyLog);
    }

    @Override
    public List<FirstmoneyLog> selectByMonthStr(String monthStr) {
        return firstmoneylogDao.selectByMonthStr(monthStr);
    }

    @Override
    public FirstmoneyLog selectNewest(String orderCode, String serviceCode, String cityCode) {
        return firstmoneylogDao.selectNewest(orderCode,serviceCode,cityCode);
    }

    @Override
    public void inserFirstMoneyLog(FirstmoneyLog firstmoneyLog) {
        firstmoneylogDao.inserFirstMoneyLog(firstmoneyLog);
    }

    @Override
    public void updateFirstMoneyLog(FirstmoneyLog firstmoneyLog) {
        firstmoneylogDao.updateFirstMoneyLog(firstmoneyLog);
    }

    @Override
    public int selectUserIdCount(String orderCode, String serviceCode, String userid) {
        return firstmoneylogDao.selectUserIdCount(orderCode,serviceCode,userid);
    }

}